package com.gitee.wsl.compose.state.backstack

/**
 * The state of document of the TextEditor of Writeopia. This class has all the stories in their
 * updated state and which one has the current focus.
 */
open class StoryState(
    val stories: Map<Int, StoryStep>,
    val lastEdit: LastEdit = LastEdit.Nothing,
    val focus: Int? = null,
    //val selection: Selection = Selection.start()
){
    fun copy(stories: Map<Int, StoryStep>) = StoryState(stories,lastEdit,focus)
}